package com.pc_project.mapper;

import com.pc_project.domain.Audit;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface AuditDao {
    int deleteByPrimaryKey(Integer aid);

    int insert(Audit record);

    int insertSelective(Audit record);

    Audit selectByPrimaryKey(Integer aid);

    int updateByPrimaryKeySelective(Audit record);

    int updateByPrimaryKey(Audit record);

//    通过用户名查找审核者用户
    Audit selectOneByAUsernameAudit(String ausername);

    String selectRoleByAid(int aid);

}